{% extends "base.html" %}
{% block tabs %}
<li><a href="/" title="Home">Home</a></li>
<li><a href="/myprofile/review/{{ currentUser.abstract_user.id }}" title="Review">
	Reviews
	{% if profileOwner and currentUser.abstract_user.reviews_notification > 0 %}
		[{{ currentUser.abstract_user.reviews_notification }}]
	{% endif %}
	</a></li>
<li><a href="/myprofile/connections/{{ currentUser.abstract_user.id }}/" title="My Connections">
	Connections
	{% if profileOwner and currentUser.abstract_user.connections_notification > 0 %}
		[{{ currentUser.abstract_user.connections_notification }}]
	{% endif %}
	</a>
</li>
<li><a href="/messaging/" title="My Messages">
	Messages
	{% if loggedinUser.abstract_user.messages_notification > 0 %}
		[{{ loggedinUser.abstract_user.messages_notification }}]
	{% endif %}
	</a></li>

{% if not currentUser.category == "student" %}
	{% if profileOwner %}
		<li><a href="/myprofile/addSlot/" title="My Schedule">Schedule</a></li>
	{% else %}
		<li><a href="/myprofile/schedule/{{ currentUser.abstract_user.id }}/" title="Schedule">Schedule</a></li>
	{% endif %}
{% endif %}

{% if currentUser.category == 'institute' %}
	<li><a href="/myprofile/photos/{{ currentUser.abstract_user.id }}/" title="Photos">Photos</a></li>
{% endif %}

{% if not profileOwner %}
	{% if not areFriends %}
		{% if requestedFriend %}
			<li><a href="/myprofile/{{ currentUser.abstract_user.id }}">Awaiting Response</a></li>
		{% else %}
			{% if friendRequested %}
				<li><a href="/myprofile/connections/">Respond to Friend Request</a></li>
			{% else %}
				<li><a href="/myprofile/sendFriendRequest/{{ currentUser.abstract_user.id }}/">Add Friend</a></li>
			{% endif %}
		{% endif %}
	{% endif %}
	
	{% if not currentUser.category == "student" and not loggedinUser.category == 'student' and possibleEmployment %}
		{% if not areConnected %}
			{% if requestedWork %}
				<li><a href="/myprofile/{{ currentUser.abstract_user.id }}">Awaiting Confirmation</a></li>
			{% else %}					
				{% if workRequested %}
					<li><a href="/myprofile/connections/">Respond to Employment Request</a></li>
				{% else %}
					<li><a href="/myprofile/sendEmploymentRequest/{{ currentUser.abstract_user.id }}/">Send Employment Request</a></li>
				{% endif %}
			{% endif %}
		{% endif %}
	{% endif %}
{% endif %}	

<li><a href="/myprofile/getUpdated/" title="Get Updated">Get Updated</a></li>
<li><a href="/logout" title="Logout">Logout</a></li>
{% endblock %}